<header id="header" class="navbar">
    <ul class="nav navbar-nav hidden-sm pull-right">
        <if condition="$user neq ''">
            <li>
                <div class="m-t-mini">
                    <a href="/Profile">
                        <span class="m-t-mini hidden-sm-only">{$user.username}</span>
                        <span class="thumb-small avatar inline"><img src="{$user.avatar}" alt="..." class="img-circle"></span>
                    </a>
                </div>
            </li>
        </if>
        <li>
            <div class="m-t m-r-small m-b-small pull-right" id="panel-notifications">
                <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                    <i class="icon-bell icon-xlarge text-default"></i>
                    <b class="badge badge-notes bg-danger count-n"></b>
                </a>
                <section class="dropdown-menu m-r m-t-mini">
                    <section class="panel panel-large arrow arrow-top-right">
                        <!-- 标题 -->
                        <header class="panel-heading bg-white">
                        </header>

                        <div class="list-group list-group-flush m-t-n">

                            <volist name="notification" id="no">
                                <gt name="no.num" value="0">
                                    <a href="/News/topic/{$no.tid}" class="media list-group-item">
                                        <span class="pull-left thumb-small "><i class="icon-time icon-2x text-default"></i></span>
                                        <span class="media-body block m-b-none">
                                            <i class="icon icon-tag text-muted"></i>
                                            <span class="text-danger">{$no.name}</span> 更新了 <span class="text-info">{$no.num}</span> 篇文章<br>
                                            <small class="text-muted">最近三天</small>
                                        </span>
                                    </a>
                                </gt>
                            </volist>

                            <if condition="$mostcomment neq '' ">
                                <a href="/news/{$mostcomment.nid}" target="_blank" class="media list-group-item">
                                    <span class="pull-left thumb-small "><i class="icon-comments-alt icon-2x text-default"></i></span>
                                    <span class="media-body block m-b-none">
                                        热评文章 <span class="text-info">{$mostcomment.title}</span><br>
                                    </span>
                                </a>
                            </if>

                        </div>
                        <!-- 底部 -->
                        <footer class="panel-footer bg-white">
                        </footer>
                    </section>
                </section>
            </div>
        </li>
    </ul>
    <div class="m-l-large"><a class="navbar-brand" href="/">PinPaper</a></div>
    <div style="margin-left: 40%">
        <form class="navbar-form pull-left shift" action="[search_action]" data-toggle="shift:appendTo" data-target=".nav-primary">
            <i class="icon-search text-muted"></i>
            <input type="text" class="input-small form-control" name="keyword" placeholder="搜索">
        </form>
        <div class="btn-group m-t-small m-l-small" style="display:[menu_display]" data-toggle="buttons">
            <label class="btn btn-white btn-small [all_news]" id="all_news">
                <input type="radio" id="option1" name="options"> 全部
            </label>
            <label class="btn btn-white btn-small [sub_news]" id="sub_news">
                <input type="radio" id="option2" name="options"> 订阅
            </label>
            <label class="btn btn-white btn-small [find_news]" id="find_news">
                <input type="radio" id="option3" name="options"> 发现
            </label>
        </div>
    </div>
</header>